﻿<%@ Page Language="C#" MasterPageFile="~/admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="AddFilm.aspx.cs" Inherits="admin_AddFilm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .calendar_style
        {
            position: absolute;
            z-index: 100;
            top: 1px;
            left: 0px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div class="title_content">
        <asp:Label ID="lblInfo" runat="server" Text="Thêm Phim Mới"></asp:Label>
    </div>
    <div class="content_content">
        <center>
            <table border="0" cellpadding="0" style="border-collapse: collapse" width="80%" align="center">
                <tr height="40">
                    <td width="100%" align="center" colspan="2">
                        <asp:Label ID="lblError" runat="server" BackColor="Red"></asp:Label>
                        <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Giờ nhập không hợp lệ"
                            ControlToValidate="txtSuat1" MaximumValue="23:59" MinimumValue="00:00" SetFocusOnError="True"></asp:RangeValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Phim phải có tối thiểu 1 suất chiếu"
                            ControlToValidate="txtSuat1" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td width="50%" valign="top">
                        <table border="0" cellspacing="0" cellpadding="0" width="100%">
                            <tr>
                                <td width="40%" align="left">
                                    Tên phim (VN)
                                </td>
                                <td width="60%" align="left">
                                    <asp:TextBox ID="txtTenFilmVN" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr id="rowtungay" runat="Server">
                                <td width="40%" align="left">
                                    Từ ngày:
                                </td>
                                <td width="60%" align="left">
                                    <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                        <tr>
                                            <td width="40%" align="left">
                                                <asp:Label ID="lblTuNgay" runat="server" Text=""></asp:Label>
                                            </td>
                                            <td>
                                                <asp:ImageButton ID="Image1" ImageUrl="~/img/iconcalendar.png" runat="server" ImageAlign="Left"
                                                    OnClick="Image1_Click" />
                                                <div style="float: left; width: 100px; position: relative;">
                                                    <div class="calendar_style">
                                                        <asp:Calendar ID="calTuNgay" runat="server" BackColor="White" BorderColor="#999999"
                                                            CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
                                                            ForeColor="Black" Height="180px" Width="200px" OnSelectionChanged="calTuNgay_SelectionChanged">
                                                            <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                                                            <SelectorStyle BackColor="#CCCCCC" />
                                                            <WeekendDayStyle BackColor="#FFFFCC" />
                                                            <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                                                            <OtherMonthDayStyle ForeColor="#808080" />
                                                            <NextPrevStyle VerticalAlign="Bottom" />
                                                            <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                                                            <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                                                        </asp:Calendar>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr id="rowdenngay" runat="Server">
                                <td width="40%" align="left">
                                    Đến ngày:
                                </td>
                                <td>
                                    <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                        <tr>
                                            <td width="40%" align="left">
                                                <asp:Label ID="lblDenNgay" runat="server" Text=""></asp:Label>
                                            </td>
                                            <td>
                                                <asp:ImageButton ImageAlign="Left" ID="Image2" ImageUrl="~/img/iconcalendar.png"
                                                    runat="server" OnClick="Image2_Click" />
                                                <div style="float: left; width: 100px; position: relative;">
                                                    <div class="calendar_style">
                                                        <asp:Calendar ID="calDenNgay" runat="server" BackColor="White" BorderColor="#999999"
                                                            CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
                                                            ForeColor="Black" Height="180px" Width="200px" OnSelectionChanged="calDenNgay_SelectionChanged">
                                                            <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                                                            <SelectorStyle BackColor="#CCCCCC" />
                                                            <WeekendDayStyle BackColor="#FFFFCC" />
                                                            <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                                                            <OtherMonthDayStyle ForeColor="#808080" />
                                                            <NextPrevStyle VerticalAlign="Bottom" />
                                                            <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                                                            <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                                                        </asp:Calendar>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td valign="top">
                        <table border="0" cellspacing="0" cellpadding="0" width="100%">
                            <tr>
                                <td width="40%" align="left">
                                    Tên phim (EN)
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtTenFilmEN" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="40%" align="left">
                                    Rạp:
                                </td>
                                <td width="60%" align="left">
                                    <asp:DropDownList ID="cbbRapChieu" runat="server">
                                        <asp:ListItem Value="7">Nam Sài Gòn</asp:ListItem>
                                        <asp:ListItem Value="1">Diamond</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr id="rowupload" runat="server">
                                <td width="40%" align="left">
                                    Hình ảnh:
                                </td>
                                <td align="left">
                                    <asp:FileUpload ID="uploadHinhAnh" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        Chi Tiết Suất Chiếu:
                    </td>
                </tr>
            </table>
            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td style="width: 70px">
                        Suất 1
                    </td>
                    <td>
                        Suất 2
                    </td>
                    <td>
                        Suất 3
                    </td>
                    <td>
                        Suất 4
                    </td>
                    <td>
                        Suất 5
                    </td>
                    <td>
                        Suất 6
                    </td>
                    <td>
                        Suất 7
                    </td>
                    <td>
                        Suất 8
                    </td>
                </tr>
                <tr>
                    <td style="width: 70px">
                        <asp:TextBox Width='70px' ID="txtSuat1" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox Width='70px' ID="txtSuat2" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox Width='70px' ID="txtSuat3" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox Width='70px' ID="txtSuat4" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox Width='70px' ID="txtSuat5" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox Width='70px' ID="txtSuat6" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox Width='70px' ID="txtSuat7" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox Width='70px' ID="txtSuat8" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="8">
                        <br />
                    </td>
                </tr>
                <tr>
                    <td colspan="8">
                        <asp:ImageButton ID="btnThem" runat="server" ImageUrl="images/btn.gif" OnClick="btnThem_Click" />
                        <asp:ImageButton ID="btnSua" runat="server" ImageUrl="images/btn.gif" OnClick="btnSua_Click" />
                    </td>
                </tr>
            </table>
        </center>
        <br />
    </div>
</asp:Content>
